/*
 * StudentCodeDb.h
 *
 *  Created on: 28 Apr 2010
 *      Author: VasTsor
 *      version 01
 */

#ifndef STUDENTCODEDB_H_
#define STUDENTCODEDB_H_
#include "IStudentCodeDb.h"


class StudentCodeDb {
public:
	StudentCodeDb();
	StudentCodeDb(const string *dbName, const string *user, const string *passwd);
	virtual ~StudentCodeDb();
	/**
	 * Get the Max aem from Student plus one
	 * if Students table is empty return '1'
	 * @return string *
	 */
	virtual string *getCode() const;
protected:
	/**
	 * Check if table Student is empty
	 * @return boolean, true if table is empty
	 */
	bool isEmpty() const;

};

#endif /* STUDENTCODEDB_H_ */
